package com.ruoyi.fuw.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 任务分配对象 fuw_task
 * 
 * @author ruoyi
 * @date 2021-11-03
 */
public class FuwTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务编号 */
    private String taskId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 任务规定开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "任务规定开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date taskStartTime;

    /** 任务规定完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "任务规定完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date taskEndTime;

    /** 任务周时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务周时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskWeek;

    /** 任务完成状态（0：任务创建；1：任务进行中；2：任务逾期；3：任务完成） */
    @Excel(name = "任务完成状态", readConverterExp = "0=：任务创建；1：任务进行中；2：任务逾期；3：任务完成")
    private String taskType;

    /** 任务权重 */
    @Excel(name = "任务权重")
    private Integer taskNum;

    /** 任务实际完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "任务实际完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date taskOutTime;

    /** 医务人员编号 */
    @Excel(name = "医务人员编号")
    private String medicalId;

    /** 组别编号 */
    @Excel(name = "组别编号")
    private String workId;

    public void setTaskId(String taskId) 
    {
        this.taskId = taskId;
    }

    public String getTaskId() 
    {
        return taskId;
    }
    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }
    public void setTaskStartTime(Date taskStartTime) 
    {
        this.taskStartTime = taskStartTime;
    }

    public Date getTaskStartTime() 
    {
        return taskStartTime;
    }
    public void setTaskEndTime(Date taskEndTime) 
    {
        this.taskEndTime = taskEndTime;
    }

    public Date getTaskEndTime() 
    {
        return taskEndTime;
    }
    public void setTaskWeek(Date taskWeek)
    {
        this.taskWeek = taskWeek;
    }

    public Date getTaskWeek()
    {
        return taskWeek;
    }
    public void setTaskType(String taskType) 
    {
        this.taskType = taskType;
    }

    public String getTaskType() 
    {
        return taskType;
    }
    public void setTaskNum(Integer taskNum) 
    {
        this.taskNum = taskNum;
    }

    public Integer getTaskNum() 
    {
        return taskNum;
    }
    public void setTaskOutTime(Date taskOutTime) 
    {
        this.taskOutTime = taskOutTime;
    }

    public Date getTaskOutTime() 
    {
        return taskOutTime;
    }
    public void setMedicalId(String medicalId) 
    {
        this.medicalId = medicalId;
    }

    public String getMedicalId() 
    {
        return medicalId;
    }
    public void setWorkId(String workId) 
    {
        this.workId = workId;
    }

    public String getWorkId() 
    {
        return workId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("taskName", getTaskName())
            .append("taskStartTime", getTaskStartTime())
            .append("taskEndTime", getTaskEndTime())
            .append("taskWeek", getTaskWeek())
            .append("taskType", getTaskType())
            .append("taskNum", getTaskNum())
            .append("taskOutTime", getTaskOutTime())
            .append("medicalId", getMedicalId())
            .append("workId", getWorkId())
            .toString();
    }
}
